<?php
class Detail extends CI_Controller{
    public function __construct(){
        parent::__construct();
        $this->load->helper("url");
		$this->load->library('session');
    }
    public function index(){
        $show['title'] = "";
        $show['view'] = "frontend/detail";
		$Id = $this->input->get('Id');
		$show['result'] = array(json_decode(file_get_contents('http://egov047.juddy.vn/api/place/getbyid?id='.$Id),true));
		$show['comment'] = array(json_decode(file_get_contents('http://egov047.juddy.vn/api/comment/getbyplaceid?placeid='.$Id),true));
        $this->load->view('frontend/content', $show);
    }
}
?>